package org.ch00.test04.demo05;

/**
 * @author ZQX
 * @date 2025-03-04
 */
public class MainTest {
    public static void main(String[] args) {
        User zs = new User();

        WeChatPay pay = new WeChatPay();
        // AliPay pay = new AliPay();

        // IPay iPay = pay = new WeChatPay();
        // IPay iPay = new WeChatPay();
        // 接口 对象 = new 实现类();
        zs.buy(pay);
    }
}
